<template>
  <div class="app-container">
    <!-- 添加导航栏 -->
    <div class="nav">
      <router-link to="/dashboard/dash"><span>首页</span></router-link>
      <router-link to="/dashboard/dash"><span>/</span><span>{{ standardName }}</span></router-link>
      <router-link :to="{
        name: 'project-manage',
        params: {
          param: staId,
          standardName: standardName
        }
      }">
        <span>/</span><span>{{ projectName }}</span>
      </router-link>
      <router-link :to="{
        name: 'moudle_select',
        params: {
          param: projectId,
          projectName: projectName,
          standardName: standardName,
          staId: staId
        }
      }">
        <span>/</span><span>模块选择</span>
      </router-link>
      <span>/</span><span>人员管理</span>
    </div>

    <!-- 其他内容保持不变 -->
  </div>
</template>

<script>
export default {
  data() {
    return {
      projectId: null,
      staId: null,
      standardName: '',
      projectName: '',
      // ... 其他 data 属性保持不变
    }
  },
  created() {
    // 获取路由参数
    const { param, projectName, standardName, staId } = this.$route.params;
    this.projectId = param;
    this.projectName = projectName || '未知项目';
    this.standardName = standardName || '未知标准';
    this.staId = staId;
    
    // ... 其他初始化代码保持不变
  }
  // ... 其他方法保持不变
}
</script>

<style scoped>
/* 添加导航栏样式 */
.nav {
  background-color: #f0f0f0;
  padding: 10px 20px;
  margin-bottom: 20px;
  border-radius: 4px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav a {
  color: #409EFF;
  text-decoration: none;
}

.nav a:hover {
  color: #66b1ff;
  text-decoration: underline;
}

.nav span {
  color: #606266;
}

/* ... 其他样式保持不变 */
</style> 